package com.ts.animal.task;

import com.ts.animal.service.WarningRecordService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//预警定时器  生病、发请、生产等
//com.ts.animal.task.WarningJob
@Component
public class WarningJob implements Job {
    @Autowired
    WarningRecordService warningRecordService;

    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        warningRecordService.warning();
    }
}
